package org.adw.launcher2.ld.secret.datahider;


import org.adw.launcher2.ld.secret.db.MyContactCache;
import org.adw.launcher2.ld.secret.dom.*;
import org.adw.launcher2.ld.secret.ui.utils.Global;

import android.util.Log;

/*
 * For hiding and restoring your data
 */
public class MyDataHider {
	public final static String TAG = "MyDataHider";;
	
	public static void hide(MyData myData) {
		myData.hide();
	}
	
	private static boolean isNeedToBackupData() {
		// TODO check for need of back up data
		return true;
	}
	
	public static void backupAllMyData() {
		if (isNeedToBackupData()) {
			Log.d(TAG, "Backup all my data");
		} else {
			Log.d(TAG, "No need to back up my data");
		}
	}
	
	public static void restoreAllMyData() {
		Log.d(TAG, "Restore all my data");
	}
	
	public static void restoreMyContact(MyContact myContact) {
		myContact.restore();
	}
	
	
}
